import request from '@/utils/request'

// 查询首件确认单列表
export function listFirstconfirm(query) {
  return request({
    url: '/Laboratory/firstconfirm/list',
    method: 'get',
    params: query
  })
}

// 查询首件确认单详细
export function getFirstconfirm(id) {
  return request({
    url: '/Laboratory/firstconfirm/' + id,
    method: 'get'
  })
}

// 新增首件确认单
export function addFirstconfirm(data) {
  return request({
    url: '/Laboratory/firstconfirm',
    method: 'post',
    data: data
  })
}

// 修改首件确认单
export function updateFirstconfirm(data) {
  return request({
    url: '/Laboratory/firstconfirm',
    method: 'put',
    data: data
  })
}

// 删除首件确认单
export function delFirstconfirm(id) {
  return request({
    url: '/Laboratory/firstconfirm/' + id,
    method: 'delete'
  })
}

// 审批首件确认单
export function verifyFirstconfirm(data) {
    return request({
      url: '/Laboratory/firstconfirm/verify',
      method: 'post',
      data
    })
  }
